	package com.wxp.controller.mall;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.wxp.controller.BaseController;

@Controller
public class IndexController extends BaseController {

	/**
	 * 网站首页
	 * 
	 * @return
	 */
	@RequestMapping(value = "/")
	public ModelAndView gotoIndex() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("metro");
		return mav;
	}

	/**
	 * 人员疫情
	 * 
	 * @return
	 */
	@RequestMapping(value = "/metro")
	public ModelAndView metro() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("metro");

		return mav;
	}

	/**
	 * 建设人员
	 * 
	 * @return
	 */
	@RequestMapping(value = "/construction")
	public ModelAndView construction() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("construction");

		return mav;
	}

	/**
	 * 物资
	 * @return
	 */
	@RequestMapping(value = "/material")
	public ModelAndView material() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("material");

		return mav;
	}

	/**
	 * "文章"
	 * @return
	 */
	@RequestMapping(value = "/article")
	public ModelAndView article() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("article");
		return mav;
	}

	/**
	 * "计划限流"
	 * @return
	 */
	@RequestMapping(value = "/planCurrLimi")
	public ModelAndView planCurrLimi() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("planCurrLimi");
		return mav;
	}

	@RequestMapping(value = "/index")
	public ModelAndView gotoIndexPC() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("metro_pc");
		return mav;
	}

	@RequestMapping(value = "/constructionPC")
	public ModelAndView constructionPC() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("construction_pc");
		return mav;
	}

	@RequestMapping(value = "/materialPC")
	public ModelAndView materialPC() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("material_pc");
		return mav;
	}

	@RequestMapping(value = "/fullload")
	public ModelAndView fullload() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("fullload");
		return mav;
	}
	
	@RequestMapping(value = "/fullloadPC")
	public ModelAndView operatePC() {
		ModelAndView mav = this.getModelAndView();
		mav.setViewName("fullload_pc");
		return mav;
	}

	@RequestMapping(value = "/fullloadDetail")
	public ModelAndView fullloadDetail(HttpServletRequest request) {
		ModelAndView mav = this.getModelAndView();
		String lineId = request.getParameter("lineId");
		mav.addObject("lineId", lineId);
		mav.setViewName("fullload_detail");
		return mav;
	}
	
	@RequestMapping(value = "/fullloadDetail1")
	public ModelAndView fullloadDetai1(HttpServletRequest request) {
		ModelAndView mav = this.getModelAndView();
		String lineId = request.getParameter("lineId");
		mav.addObject("lineId", lineId);
		mav.setViewName("fullload_detail1");
		return mav;
	}
	
	@RequestMapping(value = "/operate1")
	public ModelAndView operate1(HttpServletRequest request) {
		ModelAndView mav = this.getModelAndView();
		String lineId = request.getParameter("lineId");
		mav.setViewName("operate1");
		return mav;
	}
}
